Jun 21, 2020
navigationController?.additionalSafeAreaInsets.top = 100// where 100 is the extra space
@IBAction func sliderSlided(_ sender: Any) {let top: CGFloat = (CGFloat(200 * ((sender as? UISlider)?.value ?? 1) - 0.5))navigationController?.additionalSafeAreaInsets.top = top}
@IBAction func slider2Slided(_ sender: Any) {let top: CGFloat = (CGFloat(100 * ((sender as? UISlider)?.value ?? 1)))additionalSafeAreaInsets.top = top}
Confusians
© 2015 - 2025